
package com.baijia.jigou.po;

import java.io.Serializable;
import java.util.Date;


/**
 * @title OrgCascadeAccount
 * @desc 子帐号表PO
 * @author caoliang
 * @date 2015年9月22日
 * @version 1.0
 */
public class OrgCascadeAccount implements Serializable{
        
    private static final long serialVersionUID = 2242402923569831064L;
    
    private Long id; // '机构子帐号id, 主键'
    private Integer orgId; // NOT NULL DEFAULT '0' COMMENT '机构帐号id'
    private Integer orgNumber; // NOT NULL DEFAULT '0' COMMENT '机构编号'
    private String username; // NOT NULL DEFAULT '' COMMENT '登录用户名',
    private String password; // NOT NULL DEFAULT '' COMMENT '登录密码',
    private String staffname; // NOT NULL DEFAULT '' COMMENT '员工名',
    private Integer status; // NOT NULL DEFAULT '0' COMMENT '子帐号状态 0:未激活 1:已激活',
    private String pcAuth; // NOT NULL DEFAULT '' COMMENT '子帐号所有pc权限',
    private String appAuth; // NOT NULL DEFAULT '' COMMENT '子帐号所有app权限',
    private Date createTime; // NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    private Date updateTime; // DEFAULT NULL COMMENT '更新时间',
    private Date lastLoginTime; // NOT NULL COMMENT '最近登录时间',
    private Integer isdel; // unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0:正常 1:删除',

    public Long getId() {

        return id;
    }

    public void setId(Long id) {

        this.id = id;
    }

    public Integer getOrgId() {

        return orgId;
    }

    public void setOrgId(Integer orgId) {

        this.orgId = orgId;
    }

    public Integer getOrgNumber() {

        return orgNumber;
    }

    public void setOrgNumber(Integer orgNumber) {

        this.orgNumber = orgNumber;
    }

    public String getUsername() {

        return username;
    }

    public void setUsername(String username) {

        this.username = username;
    }

    public String getPassword() {

        return password;
    }

    public void setPassword(String password) {

        this.password = password;
    }

    public String getStaffname() {

        return staffname;
    }

    public void setStaffname(String staffname) {

        this.staffname = staffname;
    }

    public Integer getStatus() {

        return status;
    }

    public void setStatus(Integer status) {

        this.status = status;
    }

    public String getPcAuth() {

        return pcAuth;
    }

    public void setPcAuth(String pcAuth) {

        this.pcAuth = pcAuth;
    }

    public String getAppAuth() {

        return appAuth;
    }

    public void setAppAuth(String appAuth) {

        this.appAuth = appAuth;
    }

    public Date getCreateTime() {

        return createTime;
    }

    public void setCreateTime(Date createTime) {

        this.createTime = createTime;
    }

    public Date getUpdateTime() {

        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {

        this.updateTime = updateTime;
    }

    public Date getLastLoginTime() {

        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {

        this.lastLoginTime = lastLoginTime;
    }

    public Integer getIsdel() {

        return isdel;
    }

    public void setIsdel(Integer isdel) {

        this.isdel = isdel;
    }

    @Override
    public String toString() {
        return "OrgCascadeAccount [id=" + id + ", orgId=" + orgId + ", orgNumber=" + orgNumber + ", username="
            + username + ", password=" + password + ", staffname=" + staffname + ", status=" + status + ", pcAuth="
            + pcAuth + ", appAuth=" + appAuth + ", createTime=" + createTime + ", updateTime=" + updateTime
            + ", lastLoginTime=" + lastLoginTime + ", isdel=" + isdel + "]";
    }
}
